<!DOCTYPE html>
<html xmlns="http://www.thymeleaf.org"></html>
<head>
    <meta charset="UTF-8">
    <title>导入Excel</title>
</head>
<body>
    <h1>选择Excel</h1>
    <form th:action="@{/student/upload}" method="post" enctype="multipart/form-data">
        <!-- name 的值与@RequestParam的值相同-->
        <input type="file" name="file"/><br/>
        <input type="submit" value="上传"/><br/>
    </form>

</body>
</html>